import selfNaxios from 'utils/ajaxConfig.js';

export function getPlanTemplet (param, success, error) {
  return selfNaxios({
      method : 'get',
      url : '/schedule/template/search',
      params: param
    }, success, error)
}

export function InsertWorkGanttItem (param, success, error) {
  return selfNaxios({
      method : 'post',
      url : '/projectPlan/insert',
      data: param
    }, success, error)
}

export function getWorkGanttManager (param, success, error) {
  return selfNaxios({
      method : 'get',
      url : '/projectPlan/search',
      params: param
    }, success, error)
}

export function deleteWorkGanttItem (param, success, error) {
  return selfNaxios({
      method : 'post',
      url : '/schedule/template/delete',
      data: param
    }, success, error)
}


export function getUserBaseDataUrl (param, success, error) {
  return selfNaxios({
      method : 'get',
      url : '/user/me',
      params: param
    }, success, error)
}
